package com.yuda.tools.downloadanswer.service;

import com.yuda.tools.downloadanswer.dto.PaperSubject;
import com.yuda.tools.downloadanswer.dto.TroubleMaker;

import java.util.List;

public interface DownLoadAnswerService {

    String saveAnswer(int testSession, int subjectIndex) ;

    String getDownLoadProgress();

    //检查是否有程序正在运行中
    boolean checkCanRun();

    //获取下载列表
    List<PaperSubject> downLoadAnswerList();

    List<TroubleMaker> unAssemblyData();

    //一键合并第一个步骤的过程提示
    @Deprecated
    String getUnAssemblyDataTip();

    void unionFormalAnswer();

    int determineWhetherTableNeedsToBeCreated();

    void createTableNamedMqQc();

    int hasAnyRecords();

    //mq 去重并且 保存到去重表
    void executeCleanRedundantMq();

    int cleanUpOldFormalAnswerData();

    List<TroubleMaker> listUnAssemblyData();

    int updateAnswerFromMq();

    int getPcNoByStudentId(String studentId);

    int truncateMqQc();

    int downLoadLog(Integer testSession);

    String logProgress();

    List<Integer> getSubjectId(int testSession, int subjectIndex);

    int numSubjectCount(int subjectId);

    Integer authenticationData(int subjectId, int subjectCount);

    void saveError(int subjectId, int subjectCount);

    int hasDataFormalAnswer(Integer subjectId);

    void updateDownLoadSuccess(Integer subjectId);

    String checkCanBeUpdateRoadMap(Integer subjectId);

    void updateDownLoadRoadMap();

    void updateMergeRoadMap();

    void updateZkz();
}
